import request from '@/utils/request'


// 获取大屏首页数据
export function getDashboardData() {
    return request({
        url: '/admin/dashboard',
        method: 'get',
    })
}


// 获取用户管理数据
export function getUserManageData() {
    return request({
        url: '/admin/user/list?page=1&limit=20&sort=add_time&order=desc',
        method: 'get',

    })
}


// 获取收货地址数据
export function getAddressData(params) {
    return request({
        url: '/admin/address/list?page=1&limit=20&sort=add_time&order=desc',
        method:'get',
    })
}


// 获取用户收藏数据
export function getUserCollectData() {
    return request({
        url: '/admin/collect/list?page=1&limit=20&sort=add_time&order=desc',
        method:'get',
    })
}
// 获取用户足迹数据
export function getUserFootprintData() {
    return request({
        url: '/admin/footprint/list?page=1&limit=20&sort=add_time&order=desc',
        method:'get',
    })
}


// 获取搜索历史数据
export function getSearchHistoryData() {
    return request({
        url: '/admin/history/list?page=1&limit=20&sort=add_time&order=desc',
        method:'get'
    })
}

// 获取意见反馈数据
export function getFeedbackData() {
    return request({
        url: '/admin/feedback/list?page=1&limit=20&sort=add_time&order=desc',
        method:'get'
    })
}
